import request from "@/utils/request";

export const articleGetChannel=()=> request.get('/my/cate/list')
export const articleAddChannel=(data)=>request.post('/my/cate/add',data)
export const articleUpdateChannel=(data)=>request.put('/my/cate/info',data)
export const delChannel=(id)=>request.delete('/my/cate/del',{
    params:{id}
})
export const articleGetChannelList=(params)=>request.get('/my/article/list',{
    params
})
export const articleAdd=(data)=>{
    request.post('/my/article/add',data)
}
export const articleDetail=(id)=>request.get('/my/article/info',{
    params:{
        id
    }
})
export const articleUpdate=(data)=>request.put('/my/article/info',data)
export const articleDelete=(id)=>request.delete('/my/article/info',{
    params:{
        id
    }
}
)
